<!DOCTYPE html>
<html>
<head>
	<title>03-observer</title>
	<script type="text/javascript" src="js/mummy.js" charset="utf-8"></script>
	
</head>

<body>

<script type="text/javascript" charset="utf-8">

Class($abstract,{
	$define:function Dessert(){
		this.Libelle;
		this.Prix;
		
		this.display = function(){
			console.log(this.Libelle+' : '+this.Prix+' Euros');
		}
	}
		
});

Class({
	$extends:Dessert,
	$define:function Tarte(){
		
		this.Tarte = function(lib,prix){
			this.Libelle = lib;
			this.Prix = prix;
		}
	}
});

//var choux = $(Dessert).getNew(); /*error*/

var tarteAuxPommes = $(Tarte).getNew("Tarte aux Pommes", 2);
tarteAuxPommes.display();


</script>
	
	

</body>
</html>
